#pragma once
#include "veicle.h"
class Lorry :
	public Veicle
{
public:
	Lorry(void):Veicle(){weight = 0;}
	Lorry(string brand, int year, double weight):Veicle(brand,year){this->weight = weight;}
	~Lorry(void);
	void SetWeight(double weight){this->weight = weight;}
	double GetWeight(){return weight;}
	void print()
	{
		Veicle::print();
		cout << weight << endl;
	}
private:
	double weight;
};

